﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangeActive.aspx.cs" Inherits="member_ChangeActive" %>

<style type="text/css">
		li{margin:0; padding:0; list-style-type:none;line-height:24px;}
		.text{width:240px; height:36px;border:1px solid #ccc; padding:0; margin-left:0; text-indent:1em; themeColor: #00a988;font-size:14px;color:#ff0000;}
		.btn{ width:160px; height:36px; background-color:#0160A0; border:0px; color:#fff; font-size:24px;}
		.footer{ margin-top:1px; font-size:12px; color:#5B809A;text-align:center;}
		
		.mGrid {    
    width: 100%;    
    background-color: #fff;    
    margin: 5px 0 10px 0;    
    border: solid 1px #525252;    
    border-collapse:collapse;    
}   
.mGrid td {    
    padding: 2px;    
    border: solid 1px #c1c1c1;    
    color: #717171;
    font-size:8px;color:#ff0000;    
}   
.mGrid th {    
    padding: 4px 2px;    
    color: #fff;    
    background: #424242 url(grd_head.png) repeat-x top;    
    border-left: solid 1px #525252;    
    font-size: 0.9em;    
}   
.mGrid .alt { background: #fcfcfc url(grd_alt.png) repeat-x top; }   
.mGrid .pgr { background: #424242 url(grd_pgr.png) repeat-x top; }   
.mGrid .pgr table { margin: 5px 0; }   
.mGrid .pgr td {    
    border-width: 0;    
    padding: 0 6px;    
    border-left: solid 1px #666;    
    font-weight: bold;    
    color: #fff;    
    line-height: 12px;    
 }      
.mGrid .pgr a { color: #666; text-decoration: none; }   
.mGrid .pgr a:hover { color: #000; text-decoration: none; }  

		</style>
<div class="Member_content">
    <form id="form1" runat="server"> 
	<h1 class="member_iconTit">
		图片资料删除程序
	</h1>
    <h2 class="jies">说明：
    <br />1、因为上传错误需要删除文件查询后删除。
    </h2>   
    <div class="msearch" style="height:40px;">
        <span class="s1">      
        <b>商品信息</b><asp:TextBox ID="spinfo" CssClass="text" runat="server" style="width:168px;" placeholder="编号/名称/拼音码/厂家名称"></asp:TextBox>
            </span>
        <span class="s1">  
        <b>批 号</b><asp:TextBox ID="pihao" CssClass="text" runat="server" style="width:168px;" placeholder="请输入药品批号"></asp:TextBox>
            </span>
        <asp:Button ID="Submit" CssClass="msbut" runat="server" Text="查  询" 
            onclick="Submit_Click" />
        </div>
        <div><asp:Label ID="msg" runat="server" Text=""></asp:Label></div>
        <div class="mbig">
            <asp:literal ID="ResultDeBug" runat="server"></asp:literal>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
                        OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                        AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" PageSize ="12" 
                        onrowdatabound="GridView1_RowDataBound"
                        CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="spid" HeaderText="imageid" ReadOnly="True" Visible="false" />
                            <asp:BoundField DataField="spbh" HeaderText="商品编号" ReadOnly="True" ItemStyle-Width="8%"/>
                            <asp:BoundField DataField="spmch" HeaderText="商品名称" />
                            <asp:BoundField DataField="shpgg" HeaderText="计量规格" />
                            <asp:BoundField DataField="dw" HeaderText="单位" ItemStyle-Width="5%"  />
                            <asp:BoundField DataField="shengccj" HeaderText="生产厂家" />
                            <asp:BoundField DataField="fzxx1" HeaderText="批号" />
                            <asp:BoundField DataField="url" HeaderText="路径" />
                            <asp:BoundField DataField="isfile" HeaderText="文件是否存在" />
                            <asp:CommandField HeaderText="选择" ShowSelectButton="True" Visible="false" />
                            <asp:CommandField HeaderText="编辑" ShowEditButton="True" Visible="false" />
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ItemStyle-Width="5%" />
                        </Columns>
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                   
        </div>
             </form>
    </div> 	    
	</body>
</html>
